<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/jstl.jsp" %>
<script type="text/javascript">
function checkNo(){
  var num=$("#CUST_LOGIN").val();

  var reg = /^1\d{0,}/g;

  if( num =='' || num ==null || reg.test(num) ){
    return true;
  }else {
    alert("登录账号格式不正确！");
    return false;
  }

}

function checkEmail(){
   var reg0=/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
   var num=$("#USR_EMAIL").val();
   if(reg0.test(num)){
       return true;
     }
     if(num==''||num==null){
    return true;
  }
     else{
       alert("邮箱格式不正确！");
       document.getElementById("USR_EMAIL").value=" ";
       return false;
     }
}

function checkSubmit(){
       var isSubmit = checkNo();
       
       if(isSubmit == true){
            document.getElementById("form1").onsubmit();
        }
        
    }
</script>

<form id="pagerForm" method="post" action="412346.stp">
      <input type="hidden" name="pageNum" value="${ETF.PAGENUM}" /><!--当前第几页-->
      <input type="hidden" name="START_DAT" value="${ETF.START_DAT}"/>
      <input type="hidden" name="END_DAT" value="${ETF.END_DAT}"/>
      <input type="hidden" name="USR_MOBILE" value="${ETF.USR_MOBILE}"/>
      <input type="hidden" name="CUST_LOGIN" value="${ETF.CUST_LOGIN}"/>
      <input type="hidden" name="CUST_NAME" value="${ETF.CUST_NAME}"/>
      <input type="hidden" name="CUST_STATUS" value="${ETF.CUST_STATUS}"/>
      <input type="hidden" name="USR_STATUS" value="${ETF.USR_STATUS}"/>
      <input type="hidden" name="USR_EMAIL" value="${ETF.USR_EMAIL}"/>
      <input type="hidden" name="CUST_CRED_NO" value="${ETF.CUST_CRED_NO}"/>
      <input type="hidden" name="CUST_CRED_TYPE" value="${ETF.CUST_CRED_TYPE}"/>
</form>
<div class="pageHeader">
  <form onsubmit="return navTabSearch(this);" action="412346.stp" method="post" id="form1">
  <div class="searchBar">
    <table class="searchContent">
      <tr>
         <td>登录账号:</td>
         <td>
             <input type="text" maxlength="11" id="CUST_LOGIN"  name="CUST_LOGIN" value="${ETF.CUST_LOGIN}" onblur="checkNo()"/>
         </td>
         <td>用户名称:</td>
         <td>
             <input type="text" size="23" maxlength="64" id="CUST_NAME"  name="CUST_NAME" value="${ETF.CUST_NAME}"/>
         </td>
         <td>支付账号:</td>
         <td>
             <input type="text" size="23" maxlength="18" id="PAY_AC_NO"  name="PAY_AC_NO" value="${ETF.PAY_AC_NO}"  />
         </td>
         <td>账户状态:</td>
         <td>
           <select name="AC_STATUS" id="AC_STATUS">
             <option value="-1" select="select">--请选择--</option>
             <option value="0">正常</option>
             <option value="2">冻结</option>
           </select>
         </td>
      </tr>
    </table>
     <div class="subBar">
        <ul>
          <li><div class="buttonActive1"><div class="buttonContent"><input type="button" value="查询" onclick="checkSubmit()" /></div></div></li>
        </ul>
     </div>

  </div>
  </form>
</div>
<div class="pageContent">
  <div class="panelBar">

  </div>
  <table class="table" width="100%" layoutH="174">
    <thead>
      <tr>
        <th >登录账号</th>
        <th >用户名称</th>
        <th >支付账号</th>
        <th >账户类型</th>
        <th >账户余额</th>
        <th >账户状态</th>
        <th >开户日期</th>
        <th >操&nbsp;&nbsp;作</th>
      </tr>
    </thead>
    <tbody>
    <c:forEach items="${ETF.GRP}" var="GRP">
      <tr target="sid_user" rel="1">
        <td>${GRP.CUST_LOGIN}</td>
        <td>${GRP.CUST_NAME}</td>
        <td>${GRP.PAY_AC_NO}</td>
        <td>
           <c:if test="${GRP.AC_TYPE=='01'}">现金账户</c:if>
        </td>
        <td>${GRP.CASHACBAL}</td>
        <td>
           <c:if test="${GRP.AC_STATUS=='0'}">正常</c:if>
           <c:if test="${GRP.AC_STATUS=='2'}">冻结</c:if>
        </td>
        <td>${GRP.OPN_TX_DA}</td>
        <td>
        <div>
           <a  href="412336.stp?PAYACNO=${GRP.PAY_AC_NO}" title="详 情" target="navTab"><font color="#15428b">详 情</font></a>
           <c:if test="${GRP.AC_STATUS==0}">
              | <a  href="412209.stp?PAYACNO=${GRP.PAY_AC_NO}&PG_AC_STATUS=2"   title="确实要冻结吗?" target="ajaxTodo" ><font color="#15428b">账户冻结</font></a>
           </c:if>
           <c:if test="${GRP.AC_STATUS==2}">
              | <a  href="412209.stp?PAYACNO=${GRP.PAY_AC_NO}&PG_AC_STATUS=0"   title="确实要解冻吗?" target="ajaxTodo" ><font color="#15428b">账户解冻</font></a>
           </c:if>

        </div>
        </td>
      </tr>
      </c:forEach>
    </tbody>
  </table>
  <div class="panelBar">

      <div class="pages"><span>共[${ETF.TOLCNT}]条,当前第${(ETF.PAGENUM)*(ETF.NUMPERPAG)-(ETF.NUMPERPAG)+1}-<c:if test='${ETF.TOLCNT-(ETF.PAGENUM)*(ETF.NUMPERPAG)>=ETF.PAGENUM}'>${(ETF.PAGENUM)*(ETF.NUMPERPAG)}</c:if>
  <c:if test='${ETF.TOLCNT-(ETF.PAGENUM)*(ETF.NUMPERPAG)<ETF.PAGENUM}'>${ETF.TOLCNT}</c:if>条
  	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 汇总笔数和金额：[${ETF.TOTALRECNUMS}]笔&nbsp;&nbsp;|&nbsp;&nbsp;[<c:if test="${ETF.TOLCNT!='0'}"> ${ETF.TOTALAMT}</c:if><c:if test="${ETF.TOLCNT=='0'}">  ${ETF.TOTALAMT}</c:if> ]元
  	</span></div>

    <div class="pagination" targetType="navTab" totalCount="${ETF.TOLCNT}" numPerPage="${ETF.NUMPERPAG}" pageNumShown="${ETF.NUMPERPAG}" currentPage="${ETF.PAGENUM}"></div>
</div>
<script type="text/javascript">
$("#AC_STATUS option[value='"+${ETF.AC_STATUS}+"']").attr("selected","selected");
$("#AC_TYPE option[value='"+${ETF.AC_TYPE}+"']").attr("selected","selected");
</script>